package Core;

import java.io.IOException;
import java.util.Properties;
import java.util.logging.Logger;

/**
 * @author k4rthikR
 *
 */
public class Settings {
	
	Logger log = Logger.getAnonymousLogger();
	public Properties ZeusSettings;
	public Properties VMSettings;
	public Properties VMMSettings;
	
	
	public Settings() {
		ZeusSettings = new Properties();
		VMSettings = new Properties();
		VMMSettings = new Properties();
		
		try {
			String file1="/cloud.properties";
			String file2="/vm.properties";
			String file3="/vmm.properties";
			log.info("Loading Properties file : "+file1);
			ZeusSettings.load(this.getClass().getResourceAsStream(file1));
			log.info("Loading Properties file : "+file2);
			VMSettings.load(this.getClass().getResourceAsStream(file2));
			log.info("Loading Properties file : "+file3);
			VMMSettings.load(this.getClass().getResourceAsStream(file3));
		} catch (IOException e) {
			
			//e.printStackTrace();
			log.severe(e.getMessage());
		}
		
	}
		
}
